import pygame
image=pygame.image.load("wall.jpg")
image.set_colorkey((137,44,75))
import VerticalPlatform

class Wall(VerticalPlatform.VerticalPlatform):
	def __init__(self,pos=(0,0),im=image,height=250):
		VerticalPlatform.VerticalPlatform.__init__(self,pos,image)
		self.image=pygame.transform.scale(im,(im.get_width(),int(height)))
	def within_x_boundary(self,ox,ow):
		return VerticalPlatform.VerticalPlatform.within_x_boundary(self,ox,ow,k=0.4*0.9)
		#self.pos[0]<=ox+0.33*ow and ox-0.33*ow<=self.pos[0]+self.getWidth()
	